<template>
  <section class="welcome">
    <h1 class="title">Just dodo</h1>
    <h4 class="mune">
      <nuxt-link to="/blog">码农</nuxt-link>
      <nuxt-link to="/food">美食</nuxt-link>
      <nuxt-link to="/life">生活</nuxt-link>
    </h4>
  </section>
</template>
<script>
export default {
  scrollToTop: true,
  transition: "fade"
};
</script>


<style lang="scss" scoped>
.fg {
  color: #ccc;
}
.welcome {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("~/images/home.jpg") no-repeat 50% 50%;
  background-size: cover;
  .title {
    position: absolute;
    color: #fff;
    top: 30%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%) rotate(3deg);
    transition: all .3s;
  }
  .title:hover {
    transform: translateX(-50%) translateY(-50%) rotate(183deg) scale(1.13);
  }
  .mune {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    a {
      position: relative;
      display: block;
      padding: 0.5rem 0.8rem;
      color: #ddd;
      text-decoration: none;
      font-weight: normal;
      &::before, &::after{
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        color: #ccc;
        font-weight: bold;
        visibility: hidden;
        transition: all .2s;
        font-size: 22px;
      }
      &::before{
        left: -35px;
        content: '[';
      }
      &::after{
        right: -35px;
        content: ']';
      }
    }
    a:hover {
      color: #fff;
      &::before, &::after{
        visibility: visible;
      }
      &::before{
        left: -20px;
      }
      &::after{
        right: -20px;
      }
    }
  }
}
</style>
